<template>
    <div style="border: solid 1px; margin: 2px; padding: 5px">
        <h3>{{ upName }}:</h3>
        <p>{{ blogContent }}</p>
        <button @click="$emit('like')">点赞：{{ like }}</button>
        <button>转发</button>
    </div>
</template>

<script setup>
const props = defineProps({
    upName: String, // 字符串
    blogContent: [String, Number], // 传字符串或者数字都可以
    like: Number
})
const emit = defineEmits(['father-listen'])
function passValue() {
    emit('father-listen', 0.1)
}
</script>
